package com.eportal.api;

import net.sf.json.JSONObject;

public class MdOpenAddCommunityJson extends MdOpenBaseJson{

	
	public static MdOpenAddCommunityJson parse(String json){
		MdOpenAddCommunityJson bean  = new MdOpenAddCommunityJson();
		bean.setData(bean.new Community());
		MdOpenBaseJson.parse(json,bean);
		if(bean.isSuccess()){
			JSONObject obj = JSONObject.fromObject(json);
			JSONObject data = obj.getJSONObject("data");
			bean.getData().setDepartid(data.getString("departid"));	
		}
		return bean;
	}
	
	private Community data;
	
	
	
	public Community getData() {
		return data;
	}



	public void setData(Community data) {
		this.data = data;
	}



	 public class Community{
		 Community(){
			 
		 }
		private String departid;

		public String getDepartid() {
			return departid;
		}

		public void setDepartid(String departid) {
			this.departid = departid;
		}
		
		
	}
}
